import sys
from PyQt5.QtWidgets import QWidget, QApplication, QLabel

app = QApplication(sys.argv)

wid  = QWidget()

wid.setWindowTitle("文本展示")

label = QLabel()
label.setText("第一个文本")

label.setParent(wid)

wid.show()

sys.exit(app.exec_())